﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CategoryMenuItems.ascx.cs" Inherits="AspZone.Commerce.Web.Views.Catalog.CategoryMenuItems" %>
<%@ Import Namespace="AspZone.Commerce.Web.Controllers" %>
<% if (this.Categories != null && this.Categories.Count() > 0) { %>
<ul>
    <% 
        foreach (var category in this.Categories)
        {
            if (category.Visible)
            { 
    %>
                <li>
                <%= Html.ActionLink<CatalogController>(x => x.Category(category.SEOName), category.Name)%>
                <%= Html.RenderUserControl("~/Components/CatalogComponent/Views/CategoryMenuItems.ascx", null, new { Categories = category.ChildCategories })%>
                </li>
    <%
            } 
        }
    %>
</ul>

<% } %>
